################################################################################
##
##   Hack Title:		easyUCP Absend User add on
##   
##   Hack Author:		AmigaLink < Amiga@ms25.de >  
##			
##			
##			
##
##   Installation Level:	Easy 
##   Installation Time:		1 Minutes 
##
##   Files To Edit:		1
##
##				\includes\usercp_register.php
##
################################################################################
##
##  This hack is released under the GPL License. 
##
################################################################################
#
#----------[ PLEASE NOTE ]------------------------------
#
# After installing the Absend User Mod

#
#----------[ OPEN ]-------------------------------------
#

\includes\usercp_register.php

#
#----------[ FIND ]-------------------------------------
#

	if ( ($userdata['user_level'] == USER && $board_config['users_allow_absence'] == TRUE) || ($userdata['user_level'] != USER && $userdata['user_level'] != ANONYMOUS) )
	{
		$template->assign_block_vars('allow_absence', array());
	}

#
#----------[ REPLACE WITH ]-----------------------------
#

/*
	if ( ($userdata['user_level'] == USER && $board_config['users_allow_absence'] == TRUE) || ($userdata['user_level'] != USER && $userdata['user_level'] != ANONYMOUS) )
	{
		$template->assign_block_vars('allow_absence', array());
	}
*/

#
#----------[ FIND ]-------------------------------------
#

	if ( $ucp_mode == 'ucp_info' || $ucp_mode == '' )
	{
		$template->assign_block_vars('switch_ucp_info', array() );
#
#----------[ AFTER, ADD ]-------------------------------
#

		if ( ($userdata['user_level'] == USER && $board_config['users_allow_absence'] == TRUE) || ($userdata['user_level'] != USER && $userdata['user_level'] != ANONYMOUS) )
		{
			$template->assign_block_vars('switch_ucp_info.allow_absence', array());
		}

#
#----------[ SAVE/CLOSE ALL FILES ]-----------------
#
#     EoM
